#include <Windows.h>
#include <string>
#include <sstream>
#include <cstdio>
#include <iostream>

bool CommWrite(HANDLE port,char* writeBuffer,OVERLAPPED* portOverlapped);
bool CommRead(HANDLE port,char* readBuffer,OVERLAPPED* portOverlapped);
bool connectSerialPort(HANDLE* portReturn);

const short bufferSize = 512;